-----------------------------------------------------------------------------
-- 调试
-----------------------------------------------------------------------------
return {
    -- ## dap
    -- https://github.com/mfussenegger/nvim-dap
    {
        'mfussenegger/nvim-dap',
    },

    -- https://github.com/rcarriga/nvim-dap-ui
    {
        "rcarriga/nvim-dap-ui",
        dependencies = {"mfussenegger/nvim-dap"},
        keys = require("keybinding")["nvim-dap-ui"](),
        config = function()
            local opts = {
                mappings = {
                    -- Use a table to apply multiple mappings
                    expand = { "<CR>", "<2-LeftMouse>" },
                    open = "o",
                    remove = "d",
                    edit = "e",
                    repl = "r",
                    toggle = "t",
                },
            }
            require("dapui").setup(opts)
        end,
    },

    -- https://github.com/leoluz/nvim-dap-go
    {
        'leoluz/nvim-dap-go',
        config = function()
            require "dap.golang"
        end,
    },
}

